package com.wave.mapper;


import com.wave.entity.Auth;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AuthMapper {

    int createAuth(Auth auth);

    String getDepartmentId(String department);
    String getQuarterId(String quarter);
    String getDepartmentName(String department);
    String getQuarterName(String quarter);

    void deleteOld();

    List<Auth> getAuthList(@Param("pageStart")int pageStart, @Param("pageSize")int pageSize,
                           @Param("aName")String aName, @Param("aId")String aId,
                           @Param("aDepartments")String aDepartments, @Param("aQuarter")String aQuarter,
                           @Param("aIdentity")String aIdentity);
    List<Auth> list();
    int getAuthNum(@Param("aName")String aName, @Param("aId")String aId,
                   @Param("aDepartments")String aDepartments, @Param("aQuarter")String aQuarter,
                   @Param("aIdentity")String aIdentity);
    int delete(int id);
}
